package com.bana.sys.dao;

import com.bana.sys.model.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDAO {

    /**
     * 查询子部门
     * @return 部门集合
     */
    List<Department> getDepartmentChildren(@Param("jgbm")int jgbm);

    Department getDepartment(@Param("jgbm")int jgbm);

    int insertDepartment(Department department);

    int updateDepartment(Department department);

    int deleteDepartment(@Param("jgbm") int jgbm);

}
